package com.vteba.utils.id;

import java.util.concurrent.atomic.AtomicLong;

public class LongIncrement {
	private static volatile AtomicLong LONG = new AtomicLong(1);
	
	private LongIncrement() {
	}

	public static long getAndInc() {
		return LONG.getAndIncrement();
	}
	
	public static long getAndDec() {
		return LONG.getAndDecrement();
	}
	
	public static void reset(long v) {
		LONG.set(v);
	}
}
